﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace XDSoft.Web.TB_Clients
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int id=(Convert.ToInt32(strid));
					ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(int id)
	{
        XDSoft.BLL.TB_Options oBll = new XDSoft.BLL.TB_Options();
		XDSoft.BLL.TB_Clients bll=new XDSoft.BLL.TB_Clients();
		XDSoft.Model.TB_Clients model=bll.GetModel(id);
		this.lblid.Text=model.id.ToString();
		this.lblclientName.Text=model.clientName;
		this.lblcorpName.Text=model.corpName;
		this.lbladdress.Text=model.address;
		this.lbltel.Text=model.tel;
		this.lblmobile1.Text=model.mobile1;
		this.lblmobile2.Text=model.mobile2;
		this.lblwebUrl.Text=model.webUrl;
		this.lblemail.Text=model.email;
		this.lblqq.Text=model.qq;
		this.lbltraceLog.Text=model.traceLog;
		this.lblmemo.Text=model.memo;
        if (!string.IsNullOrEmpty(model.clientLevel))
            this.lblclientLevel.Text = oBll.GetModel(Convert.ToInt32(model.clientLevel)).name;

	}


    }
}
